import request from '@/utils/request.js'
import api from './apis.js'

export function login (data) {
	return request(api.Login, 'POST', data)
}

export function getInfo () {
	return request(`${api.GetInfo}?clientType=2`, 'get')
}

export function logout () {
	return request(api.Logout, 'POST')
}

export function getCaptcha () {
	return request(api.GetCaptchaImage, 'GET')
}
